package org.ls.petclinic.dao.impl;

import org.ls.petclinic.dao.UserDao;
import org.ls.petclinic.pojo.User;

/**
 * @Description
 * @Author 浪矢先生
 * @Create 2022-06-09 22:57
 */
public class UserDaoImpl extends BaseDao implements UserDao {
    @Override
    public User getUserByUsername(String username) {
        String sql="select * from user where username=?";
        return queryForOne(User.class, sql, username);
    }
}
